﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="email-subcrible.aspx.cs" Inherits="EnmineKaitlin.admin.email_subcrible" MasterPageFile="~/MasterPage/AdminDefault.Master" %>
<%@ Register Assembly="EnmineKaitlin" Namespace="EnmineKaitlin.Common" TagPrefix="Pagging" %>
<asp:Content ID="ctnemail" runat="server" ContentPlaceHolderID="cphContent">
<div class="form list">
        <h2><span class="icon"><img src="../images/admin/Play.png"></span>Email subcrible</h2>
        <div class="content">
            <div class="left add-user">                
                <h3>Thêm email</h3>
                <table border="0">
                    <tr>
                        <td align="right">Email:</td>
                        <td><asp:TextBox ID="txtEmail" Width="180" runat="server" CssClass="txt required email"></asp:TextBox></td>
                    </tr>                    
                    <tr><td></td><td><asp:Button ID="btnAddEmail" runat="server" Text="Thêm email" CssClass="btn right" OnClick="btnAddEmail_Click" /></td></tr>                                                                                    
                </table>                
            </div>
            <div class="list-cat-right">
                <asp:Label ID="lblNotice" runat="server" CssClass="error"></asp:Label>                                                    
                <asp:GridView ID="grvEmail" runat="server" AutoGenerateColumns="false" 
                    DataKeyNames="EmailID" Width="100%" 
                    CssClass="tbl-list" AlternatingRowStyle-BackColor="AntiqueWhite" OnRowDataBound="grvEmail_RowDataBound" 
                    OnRowCommand="grvEmail_RowCommand" onrowdeleting="grvEmail_RowDeleting">
                    <Columns>                        
                        <asp:TemplateField HeaderText="STT" >
                            <ItemTemplate><%#Container.DataItemIndex+1 %></ItemTemplate>
                        </asp:TemplateField>    
                        <asp:BoundField HeaderText="Email" DataField="Email" />                                                                    
                        <asp:TemplateField HeaderText="Thao tác" ItemStyle-Width="60">
                            <ItemTemplate>                                
                                <asp:LinkButton ID="lbtDelete" runat="server" CssClass="btnDelete" Text="Xóa" CommandName="delete" CommandArgument='<%#Eval("Email") %>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>  
                <div class="pagenav">                    
                    <Pagging:PaggingControl runat="server" ID="ctlPagging" Mode="Url" PageSize="20"
                    PreviousClause="<img src='../images/Back.png'/>" NextClause="<img src='../images/Forward.png'/>" />
                </div>              
            </div>
        </div>
    </div>
</asp:Content>
